package cn.it.infrastructure.domain.service;

import cn.it.infrastructure.domain.valobj.AddressVO;
import cn.it.infrastructure.domain.valobj.BuyVO;
import cn.it.infrastructure.domain.valobj.LoginVO;
import cn.it.infrastructure.domain.valobj.OrderVO;
import cn.it.infrastructure.po.TbGoods;
import cn.it.infrastructure.po.TbUser;

import java.util.List;

/**
 * @Author Mzq
 * @description 用户服务
 * @createTime 2024/7/5
 */
public interface IUserService {

    /**
     * 用户注册服务
     * @param loginVO
     * @return
     */
    public TbUser wxLogin(LoginVO loginVO);

    /**
     * 用户下单服务
     * @param buyVO
     * @return
     */
    public OrderVO placeOrder(BuyVO buyVO);

    /**
     * 用户收藏
     * @param id
     */
    public List<TbGoods> userFavorites(Long id);

    /**
     * 修改收获地址
     * @param addressVO
     */
    void updateAddress(AddressVO addressVO);
}
